from Common.basepage import BasePage
from PageLocators.MainPage_locator import MainPageLocator as loc
import re
from Common.handle_log import do_log
from Common.connect_to_device import *

import time


class MainPage(BasePage):

    def click_start_play(self):
        self.click_element(loc.start_play_loc, "主页_点击开始播放")

    def click_start_share(self):
        self.click_element(loc.start_share_loc, "主页_点击分享")

    def select_screen(self):
        self.click_element(loc.first_screen_loc, "选择第一块屏幕")

    def click_ok(self):
        self.click_element(loc.ok_loc, "点击确定")


if __name__ == '__main__':
    # MainPage().move_focus_to_item("应用")
    MainPage(device="d_one").click_start_play()
